﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using GS.DataConnection;

namespace GS.CMS.Entities
{
    public class Knownledge
    {
        public DataSet GetListKnownledgeByCategory(int KnownledgeCategoryID, int pgNum)
        {
            System.Collections.Hashtable ht = new System.Collections.Hashtable();
            ht.Add("@CategoryID", KnownledgeCategoryID);
            ht.Add("@pgNum", pgNum);
            return SqlProvider.GetDataSet("pro_knownledge_by_category", "dtKnownledgeCategory", ht);
        }
        public DataTable GetListKnownledgeByID(int KnownledgeID)
        {
            System.Collections.Hashtable ht = new System.Collections.Hashtable();
            ht.Add("@KnownledgeID", KnownledgeID);
            return SqlProvider.GetTable("pro_knownledge_get_by_id", "dtKnownledge", ht);
        }
    }
}
